<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        for (var row = 1; row <= 2; row++) {
            var str = ''
            for (var col = 1; col <= row; col++) {
                str += col + '*' + row + '=' + row * col + '   '
            }
            console.log(str)
        }
        // var row = 2,
        //     col = 3;
        // var str = row + '*' + col + '=' + row * col
        // console.log(str)
    </script>
</body>

</html>